package cn.dm.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_user")
@Data
public class UserEntity {
    @Id
    @Column(name = "id")
    private Integer id;
    @Column(name = "name")
    private String name;
    @Column(name = "gender")
    private byte gender;
    @Column(name = "age")
    private Integer age;
    @Column(name = "telphone")
    private String telphone;
    @Column(name = "register_mode") //数据库字段
    private String registerMode;
    @Column(name = "third_party_id")
    private String thirdPartyId;
}
